package com.tanhua.dubbo.api;

import com.tanhua.model.VO.PageResult;
import com.tanhua.model.mongo.Movement;

import java.util.List;

public interface MovementApi {
    //发布动态
    void publish(Movement movement);

    //查询个人动态
    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    //根据用户id查询用户好友发布的动态列表
    List<Movement> findFriendMovements(Integer page, Integer pagesize, Long userId);

    //随机获取多条动态数据
    List<Movement> rondomMovements(Integer counts);

    //根据pid数组查询动态
    List<Movement> finfMovementsByPids(List<Long> pids);
}
